Q3Point3D_RRatio
You can use theQ3Point3D_RRatio
function to find a point lying between two given three-dimensional points that is at a desired distance ratio from one of those points.
TQ3Point3D *Q3Point3D_RRatio ( const TQ3Point3D *p1, const TQ3Point3D *p2, float r1, float r2, TQ3Point3D *result);
p1
- A three-dimensional point.
p2
- A three-dimensional point.
r1
- A floating-point number.
r2
- A floating-point number.
result
- On exit, the three-dimensional point that is at a desired distance ratio from
p1
along the line segment betweenp1
andp2
.DESCRIPTION
TheQ3Point3D_RRatio
function returns, as its function result and in theresult
parameter, the three-dimensional point that lies on the line segment between the pointsp1
andp2
and that is at a distance from the first point determined by the ratior1
/(r1
+r2
).